import request from '@/utils/request'

// 查询小程序用户列表
export function listSysMiniUser(query) {
  return request({
    url: '/business/SysMiniUser/list',
    method: 'get',
    params: query
  })
}

// 查询小程序用户详细
export function getSysMiniUser(miniUserId) {
  return request({
    url: '/business/SysMiniUser/' + miniUserId,
    method: 'get'
  })
}

// 新增小程序用户
export function addSysMiniUser(data) {
  return request({
    url: '/business/SysMiniUser',
    method: 'post',
    data: data
  })
}

// 修改小程序用户
export function updateSysMiniUser(data) {
  return request({
    url: '/business/SysMiniUser',
    method: 'put',
    data: data
  })
}

// 删除小程序用户
export function delSysMiniUser(miniUserId) {
  return request({
    url: '/business/SysMiniUser/' + miniUserId,
    method: 'delete'
  })
}

export function personnelSynchronization() {
  return request({
    url: '/business/SysMiniUser/personnelSynchronization',
    method: 'get'
  })
}
export function retirementSynchronization() {
  return request({
    url: '/business/SysMiniUser/retirementSynchronization',
    method: 'get'
  })
}

export function duesSynchronization() {
  return request({
    url: '/business/SysMiniUser/duesSynchronization',
    method: 'get'
  })
}


// 会员信息管理查询
export function listMember(query) {
  return request({
    url: '/business/SysMiniUser/listMember',
    method: 'get',
    params: query
  })
}
